/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package astroLib;

/**
 *
 * @author mgeden
 */
public class MoonTimes {
    private TimeForMoonAngle moonRiseSet;
    private double MJD0h, longitude, latitude;
       //private double[] temkin={-3,-6,7,4,4,8,1}; istatistiki super  bunlar
   public MoonTimes (EarthPosition earth,  double MJD0h)
    {
        this.latitude=Math.toRadians(earth.getLatitude());
        this.longitude=Math.toRadians(earth.getLongitude());
       //MJD0h=APC_Time.Mjd(year,month,day,0,0,0) - timeZone/24;      
        this.MJD0h=MJD0h;
        moonRiseSet= new TimeForMoonAngle (8.0/60.0, MJD0h, longitude, latitude);// Moonrise               at h=-50'                   
     
    }
        public double getMoonRiseTime ()
        {  
             
            return moonRiseSet.getRiseTime();
        }
         public double getMoonSetTime ()
        {  
            return moonRiseSet.getSetTime();
        }

}
